<html>
<head>
  <title>信息管理</title>
  <meta name="layout" content="common_header"/>
  <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'jquery.validate.css', absolute: true)}"/>

  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.blockUI.min.js', absolute: true)}"></script>

  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.custom.js', absolute: true)}"></script>

  <script type="text/javascript">
    jQuery(document).ready(function() {
      jQuery("#submitForm").validate({
        errorPlacement: function(error, element) {
          error.appendTo(element.parent("td"));
        },
        submitHandler: function(form) {
          jQuery.blockUI();
          jQuery(form).ajaxSubmit({
            success: function(response) {
              jQuery.unblockUI();
            }
          });
        }
      });

      bindSave();
      /*jQuery('#doSave').click(function(){
       alert(jQuery("#submitForm").valid())
       });*/
    });


  </script>
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "scaffold", action: 'save', absolute: true)}" method="post">
    <input type="hidden" name="property" value="${bo?.class.simpleName}"/>
    <input type="hidden" name="id" value="${bo?.id}"/>
    <input type="hidden" name="approveFlag" id="approveFlag" value="${bo?.approveFlag}"/>
    <input type="hidden" name="view" value="${forward}"/>

    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">

     
           <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>基本信息</b>
        </td>
      </tr>
        <tr>
        <td width="20%" class="left_title_1">发布标题：</td>
        <td width="30%" class="fillin">
          ${bo?.title}
        </td>
        <td width="20%" class="left_title_1">物业名称：</td>
        <td width="30%" class="fillin">
           ${bo?.fromEstate.name}
        </td>
      </tr>


      <tr>
        <td width="20%" class="left_title_1">房源特色：</td>
        <td width="30%" class="fillin">
          ${bo?.keywords}
        </td>
        <td width="20%" class="left_title_1">物业类型：</td>
        <td width="30%" class="fillin">
        <g:if test="${bo?.propertyType=='10'}" >普通住宅</g:if>
              <g:if test="${bo?.propertyType=='20'}" >普通公寓</g:if>
              <g:if test="${bo?.propertyType=='21'}" >高档公寓</g:if>
              <g:if test="${bo?.propertyType=='22'}" >酒店式公寓</g:if>
              <g:if test="${bo?.propertyType=='30'}" >独栋别墅</g:if>
              <g:if test="${bo?.propertyType=='31'}" >联排别墅</g:if>
              <g:if test="${bo?.propertyType=='32'}" >双拼别墅</g:if>
              <g:if test="${bo?.propertyType=='33'}" >叠加别墅</g:if>
              <g:if test="${bo?.propertyType=='40'}" >老公寓</g:if>
              <g:if test="${bo?.propertyType=='41'}" >旧式里弄</g:if>
              <g:if test="${bo?.propertyType=='42'}" >新式里弄</g:if>
              <g:if test="${bo?.propertyType=='43'}" >老洋房</g:if>
        </td>
      </tr>

       <tr>
        <td width="20%" class="left_title_1">物业户型：</td>
        <td width="30%" class="fillin">
          <g:if test="${bo?.rooms=='0'}" >0</g:if>
                <g:elseif test="${bo?.rooms=='1'}" >1</g:elseif>
                <g:elseif test="${bo?.rooms=='2'}" >2</g:elseif>
                <g:elseif test="${bo?.rooms=='3'}" >3</g:elseif>
                <g:elseif test="${bo?.rooms=='4'}" >4</g:elseif>
                <g:elseif test="${bo?.rooms=='5'}" >5</g:elseif>
                <g:elseif test="${bo?.rooms=='6'}" >6</g:elseif>
                <g:elseif test="${bo?.rooms=='7'}" >7</g:elseif>
                <g:elseif test="${bo?.rooms=='8'}" >8</g:elseif>
                <g:elseif test="${bo?.rooms=='9'}" >9</g:elseif>
                <g:elseif test="${bo?.rooms=='10'}" >10</g:elseif>
                室
                <g:if test="${bo?.lounges=='0'}" >0</g:if>
                <g:elseif test="${bo?.lounges=='1'}" >1</g:elseif>
                <g:elseif test="${bo?.lounges=='2'}" >2</g:elseif>
                <g:elseif test="${bo?.lounges=='3'}" >3</g:elseif>
                <g:elseif test="${bo?.lounges=='4'}" >4</g:elseif>
                <g:elseif test="${bo?.lounges=='5'}" >5</g:elseif>
                <g:elseif test="${bo?.lounges=='6'}" >6</g:elseif>
                <g:elseif test="${bo?.lounges=='7'}" >7</g:elseif>
                <g:elseif test="${bo?.lounges=='8'}" >8</g:elseif>
                <g:elseif test="${bo?.lounges=='9'}" >9</g:elseif>
                <g:elseif test="${bo?.lounges=='10'}" >10</g:elseif>
                厅
                <g:if test="${bo?.washrooms=='0'}" >0</g:if>
                <g:elseif test="${bo?.washrooms=='1'}" >1</g:elseif>
                <g:elseif test="${bo?.washrooms=='2'}" >2</g:elseif>
                <g:elseif test="${bo?.washrooms=='3'}" >3</g:elseif>
                <g:elseif test="${bo?.washrooms=='4'}" >4</g:elseif>
                <g:elseif test="${bo?.washrooms=='5'}" >5</g:elseif>
                <g:elseif test="${bo?.washrooms=='6'}" >6</g:elseif>
                <g:elseif test="${bo?.washrooms=='7'}" >7</g:elseif>
                <g:elseif test="${bo?.washrooms=='8'}" >8</g:elseif>
                <g:elseif test="${bo?.washrooms=='9'}" >9</g:elseif>
                <g:elseif test="${bo?.washrooms=='10'}" >10</g:elseif>
                卫
        </td>
        <td width="20%" class="left_title_1">物业楼层：</td>
        <td width="30%" class="fillin">
         第 ${bo?.floor} 层/总
              ${bo?.totalFloor} 层
        </td>
      </tr>
       <tr>
        <td width="20%" class="left_title_1">物业朝向：</td>
        <td width="30%" class="fillin">
          <g:if test="${bo?.propertyFacing=='E'}" >东</g:if>
                <g:if test="${bo?.propertyFacing=='S'}" >南</g:if>
                <g:if test="${bo?.propertyFacing=='W'}" >西</g:if>
                <g:if test="${bo?.propertyFacing=='N'}" >北</g:if>
                <g:if test="${bo?.propertyFacing=='ES'}" >东南</g:if>
                <g:if test="${bo?.propertyFacing=='EN'}" >东北</g:if>
                <g:if test="${bo?.propertyFacing=='WS'}" >西南</g:if>
                <g:if test="${bo?.propertyFacing=='WN'}" >西北</g:if>
        </td>
        <td width="20%" class="left_title_1">物业房龄：</td>
        <td width="30%" class="fillin">
        ${bo?.propertyAge}  年
        </td>
      </tr>

        <tr>
        <td width="20%" class="left_title_1">建筑面积</td>
        <td width="30%" class="fillin">
         ${bo?.buildingArea} 平方米
        </td>


      </tr>

        <g:if test="${bo.infoType=='10'}">

                          <tr>
        <td width="20%" class="left_title_1">最短租期：</td>
        <td width="30%" class="fillin">
         <g:if test="${bo?.shortestLease=='24'}" >2年以上</g:if>
                <g:if test="${bo?.shortestLease=='12'}" >1年</g:if>
                <g:if test="${bo?.shortestLease=='6'}" >半年</g:if>
                <g:if test="${bo?.shortestLease=='3'}" >三个月</g:if>
                <g:if test="${bo?.shortestLease=='1'}" >一个月</g:if>
                <g:if test="${bo?.shortestLease=='0'}" >可按天&nbsp;</g:if>
                ${bo?.rentDayPrice} 元/天
        </td>
                       </tr>

      
        <tr>
        <td width="20%" class="left_title_1">出租价格：</td>
        <td width="30%" class="fillin">
           ${bo?.price} ${bo?.unit}
        </td>
        <td width="20%" class="left_title_1">付款方式：</td>
        <td width="30%" class="fillin">
           <g:if test="${bo?.paymentTerm=='1:1'}" >押一付一</g:if>
                  <g:if test="${bo?.paymentTerm=='2:1'}" >押二付一</g:if>
                  <g:if test="${bo?.paymentTerm=='3:1'}" >押三付一</g:if>
                  <g:if test="${bo?.paymentTerm=='1:2'}" >押一付二</g:if>
                  <g:if test="${bo?.paymentTerm=='2:2'}" >押二付二</g:if>
                  <g:if test="${bo?.paymentTerm=='3:2'}" >押三付二</g:if>
                  <g:if test="${bo?.paymentTerm=='1:3'}" >押一付三</g:if>
                  <g:if test="${bo?.paymentTerm=='2:3'}" >押二付三</g:if>
                  <g:if test="${bo?.paymentTerm=='3:3'}" >押三付三</g:if>
                  <g:if test="${bo?.paymentTerm=='6:0'}" >半年一付</g:if>
                  <g:if test="${bo?.paymentTerm=='12:0'}" >一年一付</g:if>
        </td>
      </tr>

                 </g:if>
            <g:else>

        <tr>
        <td width="20%" class="left_title_1"> 房屋产权： </td>
        <td width="30%" class="fillin">
                      <g:if test="${bo?.ownership=='10'}" >商品房</g:if>
                <g:if test="${bo?.ownership=='20'}" >使用权房</g:if>
                <g:if test="${bo?.ownership=='30'}" >售后公房</g:if>
                <g:if test="${bo?.ownership=='40'}" >经济适用房</g:if>
                <g:if test="${bo?.ownership=='50'}" >单位产权</g:if>
                <g:if test="${bo?.ownership=='99'}" >其他</g:if>
        </td>
        <td width="20%" class="left_title_1"> 出售价格：  </td>
        <td width="30%" class="fillin">
                    ${bo?.price} ${bo?.unit}
        </td>
      </tr>


                 </g:else>


                 <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>配套信息</b>
        </td>
      </tr>

                   <tr>
        <td width="20%" class="left_title_1"> 房屋装修： </td>
        <td width="30%" class="fillin">
                     <g:if test="${bo?.decoration=='10'}" >尚未装修</g:if>
                <g:if test="${bo?.decoration=='20'}" >简单装修</g:if>
                <g:if test="${bo?.decoration=='30'}" >中档装修</g:if>
                <g:if test="${bo?.decoration=='40'}" >豪华装修</g:if>
        </td>
        <td width="20%" class="left_title_1">  电梯配置情况： </td>
        <td width="30%" class="fillin">
                      ${bo?.liftNum} 梯
                ${bo?.houseHold} 户
        </td>
      </tr>

                 <tr>
        <td width="20%" class="left_title_1"> 花园面积： </td>
        <td width="30%" class="fillin">
                               ${bo?.gardenArea} 平方米
        </td>
         <td width="20%" class="left_title_1"> 车位租金： </td>
        <td width="30%" class="fillin">
                                  ${bo?.parkingPrice} 元/月
        </td>
      </tr>

 


        <tr>
        <td width="20%" class="left_title_1"> 车库面积： </td>
        <td width="30%" class="fillin">
                        ${bo?.garageArea} 平方米
        </td>
        <td width="20%" class="left_title_1">  配套设施： </td>
        <td width="30%" class="fillin">
                              ${bo?.spFacilities}
        </td>
      </tr>


        <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>相关说明</b>
        </td>
      </tr>

        <tr>
        <td width="20%" class="left_title_1">相关说明：  </td>
        <td colspan="3" class="fillin">
                          ${bo?.description}
        </td>

      </tr>
             <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>联系信息</b>
        </td>
      </tr>
        <tr>
        <td width="20%" class="left_title_1"> 联系人： </td>
        <td width="30%" class="fillin">
                             ${bo?.contact}
        </td>
        <td width="20%" class="left_title_1">  手机： </td>
        <td width="30%" class="fillin">
                    ${bo?.mobile}
        </td>
      </tr>
       <tr>
        <td width="20%" class="left_title_1">固话：  </td>
        <td width="30%" class="fillin">
                        ${bo?.telephone}
        </td>
        <td width="20%" class="left_title_1"> QQ：  </td>
        <td width="30%" class="fillin">
                                ${bo?.qq}
        </td>
      </tr>
       <tr>
        <td width="20%" class="left_title_1">MSN：  </td>
        <td width="30%" class="fillin">
                            ${bo?.msn}
        </td>
        <td width="20%" class="left_title_1">   </td>
        <td width="30%" class="fillin">

        </td>
      </tr>




















































































      <tr>
        <td width="20%" class="left_title_1">审核状态</td>
        <td width="30%" class="fillin">

          <span id="approveContent">

            <g:if test="${bo?.approveFlag=='0'||bo?.approveFlag==null}">

              未审核
            </g:if>

            <g:if test="${bo?.approveFlag=='1'}">

              审核未通过
            </g:if>
            <g:if test="${bo?.approveFlag=='2'}">

              审核通过
            </g:if>

          </span>
        </td>

      </tr>

      

      <tr>
        <td align="center" colspan="2">
          <a href="javascript:history.back(-1)">返回</a>

        </td>
      </tr>
    </table>
  </form>
</div>

</body>

</html>
